export const ProjectStatus = {
  //暂存箱
  TempBox: -1,
  //项目填报
  ProjectFilling: 0, 
  //学校审核
  SchoolReview: 1,
  //任务分配
  TaskAllocation: 2,
  //提交实施方案
  SubmitProgram: 3,
  //学校复核
  SchoolReAudit: 4,
  //县级确认
  CountyConfirmation: 5,
  //方案实施
  PlanImplementation: 6,
  //结项申请
  ClosingApplication: 7,
  //单位意见
  UnitOpinion: 8,
  //学校意见
  SchoolOpinion: 9,
  //县级意见
  CountyOpinion: 10,
  //项目完成
  ProjectCompletion: 11,
  //转化情况
  TransformSituation: 12,
  //
  // //预警
  // Warning: 13,
}
export const StatusNames
 = ['项目填报', '学校审核', '任务分配',
 '提交实施方案', '学校复核', '县级确认','方案实施',
    '结项申请', '单位意见', '学校意见','县级意见',
    '项目完成','转化情况']
export const StatusScope = (status)=>{
  //轮到县级了
  if (status == ProjectStatus.CountyOpinion || status == ProjectStatus.CountyConfirmation) {
    return '待评价'
  }

  if(status<=ProjectStatus.CountyConfirmation){
    return '立项中'
  }
  else if(status<=ProjectStatus.CountyOpinion){
    return '实施中'
  }
  else if(status>=ProjectStatus.ProjectCompletion){
    return '已完成'
  }

}
//所属单位待办
const todoStatus =[
  ProjectStatus.SubmitProgram,
  ProjectStatus.PlanImplementation,
  ProjectStatus.ClosingApplication,
]
export const isTodo = (status)=>{
  if(todoStatus.includes(status)){
    return true
  }
}